package monopoli;

import monopoli.game.Partita;
import monopoli.gui.GUI;
import monopoli.communication.Communication;

/**
 *
 * @author Claudio
 */
public class Monopoli {

    private static GUI monopoliGUI;
    private static Partita monopoliPartita;
    private static Communication monopoliCommunication;


    public static GUI getMonopoliGUI() {
        if (monopoliGUI == null) {
            monopoliGUI = new GUI();
        }
        return monopoliGUI;
    }
    
    public static Partita getMonopoliPartita() {
        if (monopoliPartita == null) {
            monopoliPartita = new Partita();
        }
        return monopoliPartita;
    }

    public static Communication getMonopoliCommunication() {
        if (monopoliCommunication == null) {
            monopoliCommunication = new Communication();
        }
        return monopoliCommunication;
    }
    
    public static void setMonopoliCommunication(Communication c) {
        monopoliCommunication = c;
    }

    public static void setMonopoliPartita(Partita p) {
        monopoliPartita = p;
    }

    public static void setMonopoliGUI(GUI g) {
        monopoliGUI = g;
    }
}
